﻿<%@ Page Title="SmartProject - Change Password" Language="C#" MasterPageFile="~/AppSpace/Dashboard.Master"
    AutoEventWireup="true" CodeBehind="ChangePassword.aspx.cs" Inherits="SmartProject.AppSpace.ChangePassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table>
        <tr>
            <td>
                Old Password:
            </td>
            <td>
                <asp:TextBox ID="TxtOldPassword" runat="server" SkinID="StandardTextBox" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="ReqOldPassword" runat="server" ControlToValidate="TxtOldPassword"
                    ErrorMessage="Your old password is a required field." Display="Dynamic"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                New Password:
            </td>
            <td>
                <asp:TextBox ID="TxtNewPassword" runat="server" SkinID="StandardTextBox" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="ReqNewPassword" runat="server" ControlToValidate="TxtNewPassword"
                    ErrorMessage="Your new password is a required field." Display="Dynamic"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                Confirm New Password:
            </td>
            <td>
                <asp:TextBox ID="TxtConfirmNewPassword" runat="server" SkinID="StandardTextBox" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="ReqConfirmNewPassword" runat="server" ControlToValidate="TxtConfirmNewPassword"
                    ErrorMessage="You will need to confirm your new password." Display="Dynamic"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CmpNewPasswords" runat="server" ErrorMessage="New passwords must match."
                    ControlToCompare="TxtNewPassword" ControlToValidate="TxtConfirmNewPassword"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td align="left">
                <asp:Button ID="BtnSave" runat="server" Text="Save" SkinID="StandardButton" OnClick="BtnSave_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
